Skip to content

Conversation

Vansh5632
Copy link
Contributor

fixes #7537

added the required changes in the docs

image:
Screenshot from 2025-02-15 19-24-24

@Vansh5632
Copy link
Contributor Author

@alexander-akait can you please verify this and deploy it

@Vansh5632
Copy link
Contributor Author

@snitin315 can you please check this PR and if there is no problem can you please merge it

@@ -129,6 +165,8 @@ Note that if you're already using [`babel-loader`](https://github.com/babel/babe

To learn more about source maps, see the [development guide](/guides/development).

To learn more about source maps, see the [development guide](/guides/development).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it was duplicated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix that might be typical human error sorry for that

@alexander-akait
Copy link
Member

@Vansh5632 Looks good, let's remove duplication

Copy link

vercel bot commented Feb 27, 2025

@Vansh5632 is attempting to deploy a commit to the OpenJS Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@Vansh5632
Copy link
Contributor Author

@Vansh5632 Looks good, let's remove duplication

removed this please check this and merge this PR

@@ -115,6 +115,42 @@ Now lets change the import of `lodash` in our `./index.ts` due to the fact that

T> To make imports do this by default and keep `import _ from 'lodash';` syntax in TypeScript, set `"allowSyntheticDefaultImports" : true` and `"esModuleInterop" : true` in your **tsconfig.json** file. This is related to TypeScript configuration and mentioned in our guide only for your information.

## Ways to Use TypeScript in `webpack.config.js`

There are 5 ways to use TypeScript in `webpack.config.js`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh let's use .ts here too to avoid misleading, missing this 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think there are no more add ons if any let me know so i can do them in one commit 😊

@alexander-akait alexander-akait merged commit 27838c7 into webpack:main Feb 27, 2025
6 of 7 checks passed
@alexander-akait
Copy link
Member

Thanks

@Vansh5632 Vansh5632 deleted the docs/typescript-webpack-usage branch February 28, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve documentation how to use typescript in webpack.config.js
2 participants